package com.fuzongle.tankboot.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mybatis 配置
 */
@Configuration
//@MapperScan(value = "${mybatis-plus.typeAliasesPackage}")
@MapperScan(basePackages = "com.fuzongle.tankboot.mapper")
public class MybatisPlusConfig {
   /* *//**
     * mybatis-plus SQL执行效率插件【生产环境可以关闭】
     *//*
    @Bean
    public PerformanceInterceptor performanceInterceptor() {
        return new PerformanceInterceptor();
    }
    *//**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}